<template>
 <!-- 镇长我的页面 -->
	<view>
		<!-- 头部 -->
		<view class="background">
			<view class="">
				<view class="background_icon">
					<view @click="tomessage">
						<img src="../../static/mine/message.png" alt="">
					</view>
					<img src="../../static/mine/getout.png" alt="">
				</view>
				<!-- 个人信息 -->
				<view class="Personalinformation">
					<view class="avatar">
						<u-avatar :src="src" shape="circle" size="70"></u-avatar>
					</view>
					<view class="avatar_text">
						<text>粉橘</text>
						<text>1520000000</text>
					</view>
				</view>
			</view>
		</view>
		<!-- 回访数据 -->
		<view class="data">
			<view class="datatext">
				<view class="datatext_number">5</view>
				<view class="datatext_message">今日回访</view>
			</view>
			<view class="datatext">
				<view class="datatext_number">50</view>
				<view class="datatext_message">本月回访</view>
			</view>
		</view>

		<!-- 回访记录 -->
		<view class="Returnvisitrecord">
			<view class="Returnvisitrecord_left">
				审核记录
			</view>
			<view class="Returnvisitrecord_right">
				<text>查看更多</text>
				<text>
					<u-icon name="arrow-right" color="#CCCCCC" size="18"></u-icon>
				</text>
			</view>
		</view>
		<!--列表 -->
		<view class="list">
			<view class="indexbody" v-for="item in 1" :key="item" @click="toPassing">
				<view class="indexbody_title">
					<view>走访人</view>
					<view>合格</view>
				</view>
				<view class="indexbody_content">
					<text>里尔</text>
					<text>男</text>
					<text>29岁</text>
					<text>21522222222</text>
				</view>
				<view class="indexbody_date">
					<text>电话回访</text>
					<text>1949-10-10</text>
				</view>
			</view>
			<view class="indexbody">
				<view class="indexbody_title">
					<view>走访人</view>
					<view>合格</view>
				</view>
				<view class="indexbody_content">
					<text>里尔</text>
					<text>男</text>
					<text>29岁</text>
					<text>21522222222</text>
				</view>
				<view class="indexbody_date">
					<text>面访维护</text>
					<text>1949-10-10</text>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				// 头像
				src: 'http://pic2.sc.chinaz.com/Files/pic/pic9/202002/hpic2119_s.jpg'
			}
		},
		methods: {
			tomessage() {
				uni.navigateTo({
					url: '../information/information'
				})
			},
            toPassing(){
				uni.navigateTo({
					url:'./Qualified_details'
				})
			}
		}
	}
</script>

<style scoped>
	page {
		background-color: #EFF1F5;
	}
</style>

<style lang="scss" scoped>
	.background {
		background-image: url('../../static/mine/bg.png');
		padding-top: 20px;
	}

	.background_icon {
		display: flex;
		justify-content: flex-end;
		margin-right: 20px;

		img {
			width: 24px;
			height: 24px;
			margin: 10px 6px;
		}
	}

	// 个人信息
	.Personalinformation {
		color: #fff;
		display: flex;
		margin-left: 15px;
		padding-bottom: 20px;

		.avatar {
			margin-right: 10px;
		}

		.avatar_text {
			display: flex;
			flex-direction: column;
			color: #CEE0FF;

			text:first-child {
				font-size: 16px;
				font-weight: 800;
				padding-bottom: 5px;
			}

			text:last-child {
				font-size: 13px;
			}
		}
	}

	.data {
		height: 90px;
		border-radius: 10px;
		margin: -20px 15px 15px 15px;
		background-color: #fff;
		display: flex;
		justify-content: space-around;
		align-items: center;

		.datatext {

			// display: flex;
			view:first-child {
				color: #333333;
				padding-left: 25rpx;
			}

			.datatext_number {
				font-weight: bold;
				margin-bottom: 6px;
			}

			.datatext_message {
				color: #999999;
				font-size: 12px;
			}
		}
	}

	// 回访记录
	.Returnvisitrecord {
		margin: 15px;
		display: flex;
		justify-content: space-between;

		.Returnvisitrecord_left {
			color: #333333;
			font-size: 16px;
		}

		.Returnvisitrecord_right {
			display: flex;
			color: #BBBBBB;
			font-size: 12px;

		}
	}

	// 列表
	.list {
		.indexbody {
			margin: 15px 10px;
			background-color: #fff;
			border-radius: 5px;

			.indexbody_title {
				display: flex;
				justify-content: space-between;
				padding: 10px;

				img {
					width: 20px;
					height: 20px;
				}

				:first-child {
					font-weight: bold;
				}

				:last-child {
					color: #60C17D;
				}
			}

			.indexbody_content {
				background-color: #F8F8F8;
				margin: 5px 20px;
				padding: 5px;
				font-size: 12px;

				text {
					padding: 0 8px;
					border-right: 1px solid #333333;
				}

				:last-child {
					border-right: none;
				}
			}

			.indexbody_address {
				margin: 10px 20px;

				img {
					width: 20px;
					height: 20px;
					margin-right: 9px;
				}
			}

			.indexbody_date {
				margin: 20px 20px;
				padding-bottom: 20px;

				text:first-child {
					padding: 3px;
					font-size: 14px;
					background-color: #F8F8F8;
					color: #5F7FD0;
				}

				text:last-child {
					font-size: 12px;
					color: #AAAAAA;
					margin-left: 10px;
				}
			}
		}

	}
</style>
